package com.dkd.manage.domain;

import com.dkd.common.core.domain.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.io.Serializable;

/**
 * 工单详情对象 tb_task_details
 * 
 * @author itheima
 * &#064;date  2025-01-27
 */
@Setter
@Getter
@ApiModel(description = "工单详情对象")
public class TaskDetails extends BaseEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 工单详情ID
     */
    @ApiModelProperty(value = "工单详情ID", example = "1")
    private Long detailsId;

    /**
     * 工单ID
     */
    @ApiModelProperty(value = "工单ID", example = "12345")
    private Long taskId;

    /**
     * 货道编号
     */
    @ApiModelProperty(value = "货道编号", example = "A1")
    private String channelCode;

    /**
     * 补货期望容量
     */
    @ApiModelProperty(value = "补货期望容量", example = "50")
    private Long expectCapacity;

    /**
     * 商品ID
     */
    @ApiModelProperty(value = "商品ID", example = "67890")
    private Long skuId;

    /**
     * 商品名称
     */
    @ApiModelProperty(value = "商品名称", example = "可口可乐")
    private String skuName;

    /**
     * 商品图片URL
     */
    @ApiModelProperty(value = "商品图片URL", example = "https://example.com/image.jpg")
    private String skuImage;

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("detailsId", getDetailsId())
            .append("taskId", getTaskId())
            .append("channelCode", getChannelCode())
            .append("expectCapacity", getExpectCapacity())
            .append("skuId", getSkuId())
            .append("skuName", getSkuName())
            .append("skuImage", getSkuImage())
            .toString();
    }
}
